//
//
//Athor:Huangenkai
import javax.swing.JOptionPane;//import 
// ////////////////////////////
// the define of the class
public class unicodeTool
{
private static String ToUnicode(String cn) {
    char[] chars = cn.toCharArray();
    String returnStr = "";
    for (int i = 0; i < chars.length; i++) {
      returnStr += "\\u" + Integer.toString(chars[i], 16);
    }
    return returnStr;}
/// the main function
public static void main(String[] args)
{
	if(args!=null && args.length>0)  
        for(int i=0;i<args.length;i++)
           System.out.print(ToUnicode(args[i]));
	else 
    {
		String str="Please input some Chinese word";
        str=JOptionPane.showInputDialog(null,str);  
        String[] mystr=str.split(",");
        for(int i=0;i<mystr.length;i++)
        {JOptionPane.showMessageDialog(null,ToUnicode(mystr[i]),str,1);}
    }
	
}

}

			